package com.bsj.power.common.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.power.common.def.entity.menu.RoleMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/***
 * @description RoleMenuMapper
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/1/12 11:09
 **/
@Repository
//@DS("master")
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    /**
     * 批量添加角色与权限的关系
     *
     * @param roleMenuDOS
     * @return void
     * @author ljx
     * @time 2024/1/12 11:17
     */
    void batchInsert(@Param("list") List<RoleMenu> roleMenuDOS);
}
